package com.snailthink.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @program: springmvc-study
 * @description:
 * @author: SnailThink
 * @create: 2021-03-12 14:10
 **/
@Controller
@RequestMapping("/test2")
public class ControllerTest2 {

	/**
	 *
	 * @return
	 */
	@RequestMapping("/t1")
	public String test(Model model){
		model.addAttribute("msg","ControllerTest2");
		return "test";
	}
}
